<?php
/*
*	$version: 2009-6-26 12:15:48 beta 1.1
*	$id: Storage.php 
*	$author: taoFeng
*	$mailto: font99@Gmail.com
*	$license: This is not a freeware
*/

if (!defined('IN_LEKO')) {header("HTTP/1.0 403 Forbidden");exit;}

abstract class Storage {

	abstract public function getNumQueries();

	abstract public function dbClose();

	abstract public function fetchRowset($_queryid = false);

	abstract public function dbError();

	abstract public function stoageInit($_sqlserver, $_sqluser, $_sqlpassword, $_dbname, $_port = false, $_persistency = false);

	abstract public function Query($_query = '',$_type = '');

	abstract public function getNumrows($_queryid = null);

	abstract public function getAffectedrows();

	abstract public function fetchRow($_queryid = false,$_resulttype = MYSQL_ASSOC);

	abstract public function getRunSql();

	abstract public function fetchField($_field, $_rownum = false, $_queryid = false);

	abstract public function rowSeek($_rownum, $_queryid = false);

	abstract public function nextId();

	abstract public function freeResult($_queryid = false);

	abstract public function Escape($_string);
}

?>